public class Node<T> implements Comparable {
	public T date;
	public Node<T> next;
	
	public Node(T data,Node<T> next) {
		this.date=data;
		this.next=next;
	}
	
	public Node() {
		
	}

	@Override
	public int compareTo(Object arg0) {
		Node<T> node=(Node<T>)arg0;
		return this.compareTo(node);
		
	}
}
